<template>
</template>

<script>

    import {Ajax} from "@/utils/index";

    export default {
        name: "form",
        methods: {
            onRadioClick(list, item, key = 'checked') {
                list.forEach(function (item) {
                    item[key] = false;
                });
                item[key] = true;
            },
            getRadioCheckedItem(list, key = 'checked') {
                return list.find(function (item) {
                    return item[key] === true;
                });
            }
        }
    }
</script>

<style scoped lang="less">

</style>
